reftest: No blinking, please
authorMatthias Clasen <mclasen@redhat.com>
Thu, 4 Nov 2021 00:43:01 +0000 (20:43 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Thu, 4 Nov 2021 00:43:01 +0000 (20:43 -0400)
Blinking cursors aren't helpful when we want to
compare renderings pixel-by-pixel. Turn them off.

testsuite/reftests/gtk-reftest.c

index cd933004f457436b6a1fa0bd0ed576b91c5e15f5..232108f46ace48387f651183eae43888f12b26db 100644 (file)
@@ -509,6 +509,13 @@ main (int argc, char **argv)
   if (!parse_command_line (&argc, &argv))
     return 1;
 
+  /* Override some settings that otherwise might affect
+   * the reliability of our output.
+   */
+  g_object_set (gtk_settings_get_default (),
+                "gtk-cursor-blink", FALSE,
+                NULL);
+
   if (arg_base_dir)
     basedir = arg_base_dir;
   else